// 表单字段类型定义
const FormDataType = [
    "number",   // id
    "string",   // roleName
    "string",   // roleCode
    "string",   // description
    "dateTime", // createTime
    "dateTime", // updateTime
    "number"    // isDeleted
];

// 表单默认数据
const FormData = {
    id: null,
    roleName: "",
    roleCode: "",
    description: "",
    createTime: null,
    updateTime: null,
    isDeleted: null
};

// 字段标签
const labels = {
    id: "角色ID",
    roleName: "角色名称",
    roleCode: "角色编码",
    description: "描述",
    createTime: "创建时间",
    updateTime: "更新时间",
    isDeleted: "删除标记"
};

// 选项配置
const options = {
    isDeleted: [
        { value: 1, label: "可用" },
        { value: 0, label: "不可用" }
    ]
};

// 统一导出配置
export const RoleFormConfig = {
    FormData,
    FormDataType,
    labels,
    options
};

export default RoleFormConfig;